import { Entity, Column, Unique, Index, EntityRepository } from 'typeorm'
import { BaseEntity } from '../global'

@Entity('project')
@Unique(['projectid'])
export class Project extends BaseEntity {
    @Column({ length: 32, comment: 'snowflake id' })
    projectid: string

    @Column({ length: 256, comment: '名称' })
    projectName: string

    @Column('int', { comment: '项目类型，1研发2CICD3人资' })
    projectType: number

    @Column('int', { default: 1, comment: '状态，0归档1正常' })
    projectStatus: number
}
